<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

$this->title = '用户登录';
//$this->params['breadcrumbs'][] = $this->title;
$this->registerJsFile('/js/jquery.min.js');
$this->registerJsFile('/js/tools.js');
$this->registerJsFile('/js/layer/layer.js?v=1.0.0');
$this->registerCssFile('/css/user/login.css?v=1.0.6');
$this->registerJsFile('/js/user/login.js?v=1.0.3');
?>
<div class="login-box" style="background: url(http://cos.solepic.com/20190729/201907291004574983.jpg);">
	<div class="layui-container">				
		<div class="login-main skewing-y p30">
			<div class="block f22 mb30"><?= Html::encode($this->title) ?></div>
			<form class="layui-form" action="/api/default/userlogin" method="get" id="login-form">
			  <div class="layui-form-item">
				<input type="text" id="username" name="username" placeholder="请输入账号或手机号" class="layui-input"/>
			  </div>
			  <div class="layui-form-item">
				<input type="password" id="passwd" name="passwd" placeholder="请输入登录密码" class="layui-input"/>
			  </div>
			  <div class="layui-form-item mt30">
				  <input type="hidden" value="<?= $return_url ?>" name="return_url" id="return_url"/>				  
				<button id="login-submit" class="layui-btn layui-btn-warm layui-btn-fluid" lay-submit lay-filter="formDemo">登录</button>
			  </div>
			  <div class="layui-form-item mt30">
				<a href="/site/signup">免费注册</a> <a class="ml30" href="/user/default/passwd-retrieve">忘记密码?</a>
			  </div>
			</form>
		</div>
	</div>
</div>